import { merge } from 'lodash-es';

const replaceUrls = {
  // 'src/ty-ui/lib/ty-button/tysrc/ty-base-button.vue': import('../components//debounce-button/index.vue'), //  ty-base-button
  // 'src/basic/business-modules/process-template-management/views/process-template-management.vue': import(
  //   '../views/process-template-management.vue'
  // ), //
  // '@/basic/business-modules/dash-board/views/dash-board.vue': import('../views/new-dash-board.vue'),
  // '@/form-designer/extension/form-designer/rewrite-field-widget/input-widget-rewrite.vue': import(
  //   '../views/vform-example.vue'
  // ) // 表单组件替换示例
};
Object.keys(replaceUrls).forEach(key => {
  replaceUrls[key].then(rts => {
    merge(window.tyRoot.tyGetMixinResource(key), rts?.default);
  });
});
